:: [a] -> [a] -> Bool package:MissingH
Returns true if the given list starts with the specified elements;
false otherwise. (This is an alias for
isPrefixOf.)
Example:
startswith "He" "Hello" -> True
Returns true if the given list ends with the specified elements; false
otherwise. (This is an alias for
isSuffixOf.)
Example:
endswith "lo" "Hello" -> True
Returns true if the given parameter is a sublist of the given list;
false otherwise. Alias for
isInfixOf.
Example:
contains "Haskell" "I really like Haskell." -> True
contains "Haskell" "OCaml is great." -> False
Returns true if the given list contains any of the elements in the
search list.